﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Dynamic;
using Common;
using DAL;
using Model;
namespace UI.system.page.config
{
    public partial class menu : BaseAdmin
    {
        public AdminInfo info = new AdminInfo();
        public List<TagsInfo> tagslist = new List<TagsInfo>();
        public List<CategoryInfo> categorylist = new List<CategoryInfo>();
        public string[] menu1 = { };
        public string[] menu2 = { };
        public string[] menu3 = { };
        public string[] menu4 = { };
        public string[] menu5 = { };
        public string[] menu6 = { };
        public string[] menu7 = { };
        public string[] menu8 = { };
        public int count = 8;
        protected void Page_Load(object sender, EventArgs e)
        {
            int adminid = B.MyAdmin.ID;
            info = AdminDAL.FindOneByID(1);
            tagslist = TagsDAL.FindAll(adminid);
            categorylist = CategoryDAL.FindAll(adminid);
            menu1 = info.Menu1.Split('&');
            menu2 = info.Menu2.Split('&');
            menu3 = info.Menu3.Split('&');
            menu4 = info.Menu4.Split('&');
            menu5 = info.Menu5.Split('&');
            menu6 = info.Menu6.Split('&');
            menu7 = info.Menu7.Split('&');
            menu8 = info.Menu8.Split('&');
            
        }
        
    }
}